import { DatabaseTypes } from '../models/databaseTypes'

/**
 * Options for generation functions
 */
export class DbmOptions {
	/**
	 * The database type
	 */
	database: DatabaseTypes = DatabaseTypes.mysql

	/**
	 * The extension of table definition markdown files.
	 * Default is `.db.md`
	 */
	mdFileExtension: string = '.db.md'

	/**
	 * The markdown file directory of the database model.
	 */
	sourceFolder: string = ''

	/**
	 * The path of the output file.
	 */
	targetPath: string = ''

	/**
	 * The markdown file directory of the previous database version.
	 */
	previousVersionFolder: string = ''
}

export const DefaultOptions = new DbmOptions()
